package com.logic.landseaserver.models.rerent.service;

import com.logic.common.exception.BusinessException;
import com.logic.landseaserver.common.exception.LandseaException;
import com.logic.landseaserver.ws.request.CreateOffLineContractsReq;
import io.swagger.models.auth.In;

/**
 * Created by Junny on 2017/11/24.
 * 续租IMPL
 */
public interface IReRentService {
    /**
     * 新增续租合同B
     * @param rqObj
     * @return
     * @throws BusinessException
     */
    Integer createReRent(CreateOffLineContractsReq rqObj)throws LandseaException,BusinessException;

    void createOverList(Integer contractId) throws LandseaException;

    void synOverList(Integer contractId) throws LandseaException;

    void createPreBill(Integer contractId)throws  LandseaException;

    boolean cancelReRent(Integer contractId) throws LandseaException;

    Object queryReRentContract(Integer contractId);

    void confirmRerent(Integer contractId);
}
